home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / a_utils / debugger / amiga / powervsr.lzh / PVDevelop / PVDevelop.lzh / include / PV / MainBase.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-13  |  3.4 KB  |  168 lines

  1. #ifndef PV_MAINBASE_H
  2. #define PV_MAINBASE_H TRUE
  3. /*
  4. **  $Filename: MainBase.h $
  5. **  $Release: 1.10 $
  6. **  $Revision: 37.517 $
  7. **  $Date: 23 Sep 91 $
  8. **
  9. **  Structure definitions for Main Base (see 'TheWizardCorner')
  10. **
  11. **  ⌐ 1991 Jorrit Tyberghein, included with PowerVisor
  12. **        All Rights Reserved
  13. */
  14.  
  15. #ifndef PV_PVMEMORY_H
  16. #include <pv/PVMemory.h>
  17. #endif
  18.  
  19. #ifndef EXEC_LISTS_H
  20. #include <exec/lists.h>
  21. #endif
  22.  
  23. #ifndef DOS_DOS_H
  24. #include <dos/dos.h>
  25. #endif
  26.  
  27.  
  28. #define LASTCMD_NORMAL    0
  29. #define LASTCMD_MEMORY    1
  30. #define LASTCMD_UNASM    2
  31. #define LASTCMD_VIEW    3
  32.  
  33. #define IDC_NEXTWIN    1
  34. #define IDC_SCROLL1UP    2
  35. #define IDC_SCROLLPGUP    3
  36. #define IDC_SCROLLHOME    4
  37. #define IDC_SCROLLEND    5
  38. #define IDC_SCROLL1DO    6
  39. #define IDC_SCROLLPGDO    7
  40. #define IDC_SCROLLRIGHT    8
  41. #define IDC_SCROLL1RI    9
  42. #define IDC_SCROLL1LE    10
  43. #define IDC_DSCROLL1UP    11
  44. #define IDC_DSCROLLPGUP    12
  45. #define IDC_DSCROLL1DO    13
  46. #define IDC_DSCROLLPGDO    14
  47. #define IDC_DSCROLLPC    15
  48. #define IDC_EXEC    16
  49. #define IDC_SNAP    17
  50.  
  51. #define KEYATTACH_INVISIBLE    1
  52. #define KEYATTACH_SNAP        2
  53. #define KEYATTACH_HOLDKEY    4
  54.  
  55.  
  56. /* Structure describing a key
  57. */
  58. struct CodeQual
  59.     {
  60.         UWORD Code,Qualifier;
  61.     };
  62.  
  63. /* Structure describing a signal bit number and signal set mask
  64. */
  65. struct SignalSet
  66.     {
  67.         ULONG BitNum,SigSet;
  68.     };
  69.  
  70. /* One history line for the history buffer. These history lines are allocated
  71. ** as EXEC blocks (normal AllocMem)
  72. */
  73. struct HistoryLine
  74.     {
  75.         struct HistoryLine *Next,*Prev;
  76.         UWORD Size;        /* Size of complete structure */
  77.         char String[1];        /* Variable sized structure */
  78.     };
  79.  
  80. /* One structure for the aliases. These are EXEC blocks
  81. */
  82. struct AliasLine
  83.     {
  84.         struct AliasLine *Next,*Prev;
  85.         PVBLOCK CmdString;
  86.         PVBLOCK AliasString;
  87.     };
  88.  
  89. /* The keyattach node (or macro node). A keyattach node is an EXEC block
  90. */
  91. struct KeyAttachNode
  92.     {
  93.         struct Node node;
  94.         UWORD KeyCode;
  95.         UWORD KeyQualifier;
  96.         APTR CommandString;
  97.         UWORD CommandStringLen;
  98.         UWORD Flags;
  99.     };
  100.  
  101. struct MainBase
  102.     {
  103.         UWORD OSVersion;
  104.         APTR DosBase;
  105.         APTR IntuitionBase;
  106.         APTR GraphicsBase;
  107.         APTR UtilityBase;
  108.         APTR ExpansionBase;
  109.         APTR DiskFontBase;
  110.         APTR PowerVisorBase;
  111.         APTR CliCmdLine;
  112.         ULONG CliCmdLineLen;
  113.         BPTR ErrorFile;
  114.         ULONG pad0;
  115.         ULONG pad1;
  116.         UWORD RefreshSpeed;
  117.         UWORD RefreshCounter;
  118.         PVBLOCK RefreshCommand;
  119.         struct CodeQual BreakKey;
  120.         struct CodeQual HotKey;
  121.         struct CodeQual PauseKey;
  122.         struct CodeQual NextWinKey;
  123.         struct CodeQual HistUpKey;
  124.         struct CodeQual HistDoKey;
  125.         UBYTE PVDebugMode;
  126.         UBYTE pad2;
  127.         UBYTE pad3;
  128.         UBYTE pad4;
  129.         PVBLOCK PreCommand;
  130.         PVBLOCK PostCommand;
  131.         PVBLOCK QuitCommand;
  132.         struct HistoryLine *LastHistory;
  133.         WORD LastError;
  134.         WORD ExecLevel;
  135.         struct SignalSet HoldSignal;
  136.         struct SignalSet PortPrintSignal;
  137.         struct SignalSet IDCSignal;
  138.         struct SignalSet GadgetRefreshSignal;
  139.         struct SignalSet PVtoFrontSignal;
  140.         struct SignalSet InterruptSignal;
  141.         struct Task *PowerVisorTask;
  142.         struct IORequest *InputRequest;
  143.         struct MsgPort *InputPort;
  144.         struct HistoryLine *FirstHistLine;
  145.         ULONG NumLines;
  146.         ULONG MaxLines;
  147.         UBYTE CodeTable[32];
  148.         struct AliasLine *FirstAliasLine;
  149.         APTR ScriptLine;
  150.         UWORD DefLineLength;
  151.         UBYTE CommentChar;
  152.         UBYTE FeedbackSuppressChar;
  153.         UBYTE QuickExecChar;
  154.         UBYTE OutputSuppressChar;
  155.         UBYTE LastCommand;
  156.         UBYTE FeedBackMode;
  157.         UBYTE AutoListMode;
  158.         UBYTE HoldMode;
  159.         UBYTE pad6;
  160.         UBYTE IDCCommandNumber;
  161.         ULONG IDCArgument;
  162.         struct List KeyAttach;
  163.         APTR WorkBenchMsg;
  164.         struct HistoryLine *ScanHistory;
  165.     };
  166.  
  167. #endif
  168.